<!-- 回复 -->
<link rel="stylesheet" href="/css/afterLoginPage.css">
<div class="main layui-clear"
	style="min-height: 600px;position: relative;margin-bottom: 33px;">
	<div class="layui-bar">
    	<div class="layui-breadcrumbs">
    		<a class="home" href="/"></a>
			<i class="layui-icon">&#xe602;</i>
	  		<a href="/user/center.html?ps=8">帖子</a>
	  		<i class="layui-icon">&#xe602;</i>
	  		<a href="/user/center/answer.html">评论</a>
    	</div>
    </div>
    <#include "/apps/user/userTopInformation.html">
	<div class="ukefu-profile-menu">
		<#include "/apps/user/userinfo.html">
	</div>
	<div class="ukefu-profile">
		<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin:10px 20px;">
			<#include "/apps/user/centermenu.html">
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show" id="commentpages">
					<ul class="home-jieda pc" id="commenttopic">
						<#include "/apps/user/comment.html">
					</ul>
					<ul class="phone-ul">
					  	<#if topicCommentList?? && topicCommentList??>
					  	<#list topicCommentList as topic>
						   	<li>
						    	<span class="phone-li-title layui-elip">
						    		<span class="class">【${topic.topic.block.blockname!''}】</span>
						    		<a title="${topic.topic.title!''}" href="/topic/detail/${topic.dataid!''}.html#${topic.id!''}">${topic.topic.title!''}</a>
						    		<a style="float:right;" href="/topic/rmcomment/${topic.topic.id!''}/${topic.id!''}.html" onclick="layer.confirm('请确认是否删除评论？' , {icon: 3, title:'操作提示'},function(){location.href = '/topic/rmcomment/${topic.topic.id!''}/${topic.id!''}.html'} , function(index){layer.close(index);});return false;"><i class="fa fa-trash"></i></a>
						    	</span>
						    	<div class="phone-li-bottm">
						    		<span class="time">
						    			<#if topic.createtime??>
						    				${topic.createtime?string('yyyy-MM-dd HH:mm')} 
						    			</#if>
						    		</span>
						    	</div>
						    	<div>
							    	<span class="self">我&nbsp;</span>
							    	<span class="info-content">评论:</span>
							    	<span class="info-p">${(topic.content!'')?no_esc}</span>
						    	</div>
						   	</li>
						</#list>
						</#if>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
	layui.use(['element', 'flow'], function(){
	  	var element = layui.element() ;
	  	
	  	var flow = layui.flow;
		flow.load({
		    elem: '#commentpages' //指定列表容器
		    ,done: function(page, next){ //到达临界点（默认滚动触发），触发下一页
		      //以jQuery的Ajax请求为例，请求下一页数据（注意：page是从2开始返回）
		      $.get('/user/comment/${user.id!''}.html?p='+page, function(res){
		        //假设你的列表返回在data集合中
		        
		        //执行下一页渲染，第二参数为：满足“加载更多”的条件，即后面仍有分页
		        //pages为Ajax返回的总页数，只有当前页小于总页数的情况下，才会继续出现加载更多
		        next($('#commenttopic').append(res) , $(res).length > 0);    
		      });
		    }
		});
	});
</script>